package com.ruoyi.material.mapper;

import com.ruoyi.material.domain.WarehouseStock;

import java.util.List;


/**
 * 仓库库存Mapper接口
 *
 * @author wng
 * @date 2024-08-04
 */
public interface WarehouseStockMapper {
    /**
     * 查询仓库库存
     *
     * @param id 仓库库存主键
     * @return 仓库库存
     */
    public WarehouseStock selectWarehouseStockById(Long id);

    /**
     * 查询仓库库存列表
     *
     * @param warehouseStock 仓库库存
     * @return 仓库库存集合
     */
    public List<WarehouseStock> selectWarehouseStockList(WarehouseStock warehouseStock);

    /**
     * 新增仓库库存
     *
     * @param warehouseStock 仓库库存
     * @return 结果
     */
    public int insertWarehouseStock(WarehouseStock warehouseStock);

    /**
     * 修改仓库库存
     *
     * @param warehouseStock 仓库库存
     * @return 结果
     */
    public int updateWarehouseStock(WarehouseStock warehouseStock);

    /**
     * 删除仓库库存
     *
     * @param id 仓库库存主键
     * @return 结果
     */
    public int deleteWarehouseStockById(Long id);

    /**
     * 批量删除仓库库存
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWarehouseStockByIds(Long[] ids);
}
